import http from "@/utils/request_user";
import http_admin from "@/utils/request_admin";

//请求房间数据
export const getRooms = (params) =>{
    return http.get('/room/page',params)
}
//请求房间数据
export const getRoomsAdmin = (params) =>{
    return http_admin.get('/room/page',params)
}

//添加房间
export const setRoom = (params) =>{
    return http_admin.post('/room/setRoom',params)
}
//删除房间
export const delRoom = (params) =>{
    return http_admin.delete('/room',params)
}
//修改房间
export const updateRoom = (params) =>{
    return http_admin.put('/room',params)
}
